<template>
  <div class="container">
    <div class="list" v-if="list.length">
      <div class="item" v-for="(item, index) in list" :key="index">
        {{ item }}
      </div>
    </div>
    <div class="apply-position">
      <div class="apply">申请</div>
    </div>
  </div>
</template>

<script setup>
import { ref, reactive } from "vue";
const list = ref([1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8]);
</script>
<style lang="less" scoped>
.container {
  position: relative;
  .list {
    .item {
      height: 50px;
      background-color: aquamarine;
    }
  }
  .apply-position {
    position: sticky;
    bottom: 0px;
    height: 70px;
    .apply {
      margin: 0 auto;
      padding-top: 25px;
      width: 100px;
      text-align: center;
    }
  }
}
</style>
